package com.swotplus.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 通用常量信息
 * 
 * @author ruoyi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";


    /**
     * 菜单类型-click
     **/
    public static final String MENU_CLICK = "click";
    /**
     * 菜单类型-view
     **/
    public static final String MENU_VIEW = "view";
    /**
     * 菜单类型-scancode_push
     **/
    public static final String MENU_SCANCODE_PUSH = "scancode_push";
    /**
     * 菜单类型-scancode_waitmsg
     **/
    public static final String MENU_SCANCODE_WAITMSG = "scancode_waitmsg";
    /**
     * 菜单类型-pic_sysphoto
     **/
    public static final String MENU_PIC_SYSPHOTO = "pic_sysphoto";
    /**
     * 菜单类型-pic_photo_or_album
     **/
    public static final String MENU_PIC_PHOTO_OR_ALBUM = "pic_photo_or_album";
    /**
     * 菜单类型-pic_weixin
     **/
    public static final String MENU_PIC_WEIXIN = "pic_weixin";
    /**
     * 菜单类型-pic_location_selectn
     **/
    public static final String MENU_LOCATION_SELECT = "location_select";
    /**
     * 菜单类型-需要设置key的菜单类型
     **/
    public static final List<String> MENU_NEED_KEY =  Arrays.asList("click", "scancode_push", "scancode_waitmsg", "pic_sysphoto", "pic_photo_or_album", "pic_weixin", "location_select");
    /**
     * 图文类型-1单图文2多图
     **/
    public static final Integer MULT_TYPE_SINGLE =  1;

    /**
     * 图文类型-1单图文2多图
     **/
    public static final Integer MULT_TYPE_MORE =  2;
}
